package com.abel.contoller;

import com.abel.service.TestService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 *
 * @author heyangyang
 * @since 2024-05-16
 */
@RestController
@RequestMapping
@Slf4j
public class TestController {

    @Resource
    TestService testService;
    @GetMapping("/test")
    public String test() {
        log.info("aaaaa");
        log.info("bbbbb");
        testService.insert();
        return "success";
    }

}
